'''
用户管理模块的接口，每个接口封装一个函数，下发请求，返回接口的响应
'''


def register(url, data, br):
    '''
    :param url:  测试环境
    :param data:  测试数据
    :param br:  BaseRequests的实例
    :return: 响应
    '''
    url = url + "/futureloan/mvc/api/member/register"
    r = br.post(url, data=data)
    return r


def login(url, data, br):
    url = url + "/futureloan/mvc/api/member/login"
    r = br.post(url, data=data)
    return r

def recharge(url, data, br):
    url = url + "/futureloan/mvc/api/member/recharge"
    r = br.post(url, data=data)
    return r


def list(url, br):
    url = url + "/futureloan/mvc/api/member/list"
    r = br.get(url)
    return r
